package hud.data;

import com.mongodb.client.MongoCollection;
import org.bson.Document;

public class CollectionInformation {
    private String clientName;
    private String hostName;
    private String port;
    private MongoCollection<Document> mongoCollection;

    /**
     * 取得collection所在的client的名字。比如local connection
     * @return String
     */
    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    /**
     * 取得host的名字
     * @return
     */
    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }

    /**
     * 取得端口信息
     * @return
     */
    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    /**
     * 取得对应的MongoCollection句柄
     * @return
     */
    public MongoCollection<Document> getMongoCollection() {
        return mongoCollection;
    }

    public void setMongoCollection(MongoCollection<Document> mongoCollection) {
        this.mongoCollection = mongoCollection;
    }
}
